package com.springboot.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan(value = "com.springboot.mapper")
public class PageConfig {
    /**
     * 实现分页控件
     * @return
     */
    @Bean  //这个注解表示把该方法的返回值加入到spring容器管理
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }

}
